class Member < ActiveRecord::Base
  belongs_to :group
  has_many   :touches

  # active_scaffold callbacks: authorized_for_crud
  def authorized_for_create?
    true
  end

  def authorized_for_read?
    true
  end

  def authorized_for_update?
    true
  end

  def authorized_for_destroy?
    true
  end

  # human names
  ModelName = "会众"
  ColumnNames ={
    :name => "姓名",
    :group => "参与小组",
    :age => "年龄",
    :mobile => "手机",
    :email => "eMail",
    :msn_qq => "MSN或QQ",
    :believed => "是否信徒",
    :baptised => "是否受洗",
    :profession => "职业爱好",
    :joined_at => "加入日期",
    :touches => "事工跟进"
  }
end
